projects
/
xen.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
2198012
)
No cpu_add_remove_lock in do_boot_cpu.
author
Keir Fraser
<keir.fraser@citrix.com>
Mon, 22 Mar 2010 10:29:42 +0000
(10:29 +0000)
committer
Keir Fraser
<keir.fraser@citrix.com>
Mon, 22 Mar 2010 10:29:42 +0000
(10:29 +0000)
The do_boot_cpu() will be called when system booting or CPU
online. When system booting, we don't need hold this lock. When system
online, the lock is held already by cpu_up.
Signed-off-by: Jiang, Yunhong <yunhong.jiang@intel.com>
xen/arch/x86/smpboot.c
patch
|
blob
|
history
diff --git
a/xen/arch/x86/smpboot.c
b/xen/arch/x86/smpboot.c
index 98f2c1155cbeace7f6fa8f5475eb24bff031dd61..fcac97419a3d22fc8266fd3f08469cf073f14075 100644
(file)
--- a/
xen/arch/x86/smpboot.c
+++ b/
xen/arch/x86/smpboot.c
@@
-985,10
+985,8
@@
static int __devinit do_boot_cpu(int apicid, int cpu)
cpucount--;
/* Mark the CPU as non-present */
- spin_lock(&cpu_add_remove_lock);
x86_cpu_to_apicid[cpu] = BAD_APICID;
cpu_clear(cpu, cpu_present_map);
- spin_unlock(&cpu_add_remove_lock);
} else {
}